<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"   
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:composite="http://java.sun.com/jsf/composite"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:faces="http://java.sun.com/jsf/composite/faces/components">
 
    <composite:interface>
    	<!-- Attributes for formItem -->
    	<composite:attribute name="id" type="java.lang.String"/>
    	<composite:attribute name="for" type="java.lang.String"/>
    	<composite:attribute name="render" type="java.lang.String"/>
	   	<!-- Attributes for inputItem -->
    </composite:interface>
 
    <composite:implementation>
    	<h:selectOneMenu id="selector" label="每页记录数" valueChangeListener="#{faces.rows.change}">
    		<f:attribute name="for" value="#{cc.attrs['for']}"/>
    		<f:selectItem itemLabel="默认" itemValue=""/>
		 	<f:selectItems value="#{faces.rows.selections}" var="value" label="每页#{value}条"/>
		 	<a4j:ajax event="valueChange" render="#{cc.attrs.render}" execute="@this"/>
		 </h:selectOneMenu>
    </composite:implementation>
</ui:composition>